package com.four.peoplemanage.cards.controller;

import com.four.peoplemanage.cards.service.CardsService;
import com.four.peoplemanage.common.bean.ResponseData;
import com.four.peoplemanage.common.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/cards")
public class CardsController extends BaseController {
    @Autowired
    private CardsService cardsService;

    //查看
    @GetMapping("/canAll")
    public ResponseData<Object> getCards(
            @RequestParam("pageNum") int pageNum,
            @RequestParam("pageSize") int pageSize
    ){
        return returnObject(cardsService.getOnrePage(pageNum,pageSize));
    }
}
